package com.laycoding.layrpc.annotation;

import com.laycoding.layrpc.config.client.LayRpcAutoConfig;
import com.laycoding.layrpc.config.server.LayRpcServerAutoConfig;
import com.laycoding.layrpc.config.server.LayRpcServerScan;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@ImportAutoConfiguration(LayRpcServerAutoConfig.class)
@Import(LayRpcServerScan.class)
public @interface EnableRpcServer {
    String basePackage();
}
